home *** CD-ROM | disk | FTP | other *** search
- LDREADST(3X) Last changed: 11-5-98
-
-
- NNAAMMEE
- llddrreeaaddsstt - Reads symbol table information
-
- SSYYNNOOPPSSIISS
- ##iinncclluuddee <<ssttddiioo..hh>>
- ##iinncclluuddee <<ffiilleehhddrr..hh>>
- ##iinncclluuddee <<ssyymmss..hh>>
- ##iinncclluuddee <<llddffccnn..hh>>
-
- iinntt llddrreeaaddsstt((LLDDFFIILLEE ** _l_d_p_t_r,, iinntt _f_l_a_g_s ""));;""
-
- IIMMPPLLEEMMEENNTTAATTIIOONN
- IRIX systems (o32 ABI only)
-
- DDEESSCCRRIIPPTTIIOONN
- llddrreeaaddsstt reads in the portions of the symbol table implied by the
- _f_l_a_g_s argument. A _f_l_a_g_s argument of --11 reads in the entire symbol
- table. Since the other symbol table routines, for example, llddttbbrreeaadd,
- ensure that the relevant portions of the symbol table have been read
- in, you need not call llddrreeaaddsstt to use the other routines.
- llddrreeaaddsstt((llddppttrr,,--11)) would simply ensure the whole symbol table is read
- in at once, which is not necessary.
-
- llddrreeaaddsstt is useful, however. You can test for the existence of symbol
- table information in a file in the following way:
-
- char *filename;
- LDFILE *ldptr;
- ldptr = ldopen(filename, (LDFILE *)0);
- if(ldptr == NULL) {
- /* No such file exists */
- } else {
- /* This is not the _only_ way one could test for
- ** the existence of the symbol table.
- */
- if(ldreadst(pchdr,-1) == FAILURE) {
- /* This binary has no symbol table */
- }
- }
-
- llddrreeaaddsstt returns SSUUCCCCEESSSS if it has read in the symbol table
- successfully or FFAAIILLUURREE if it cannot. If an symbol table has been
- truncated or damaged, there is a small probability that llddrreeaaddsstt will
- core dump rather than return FFAAIILLUURREE.
-
- The program must be loaded with the object file access routine library
- lliibbmmlldd..aa.
-
- SSEEEE AALLSSOO
- llddooppeenn(3X), llddcclloosse(3X)
-
- iinnttrroo(4), llddffccnn(4)
-
- This man page is available only online.
-
-